package com.yunban.project.template.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-11-07
 * @version: 1.0
 */
@Data
@Schema(description = "批量添加类型属性信息参数")
public class BatchSaveTypeAttributeReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "类型ID不能为空")
    @Schema(description = "类型ID")
    private Long blockTypeId;

    @NotNull(message = "属性信息不能为空")
    private List<@Valid AttributeParam> attributeList;
}
